package com.cpd.blog.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cpd.blog.dto.Article.Archives;
import com.cpd.blog.entity.Article;

import java.util.List;

/**
 * @author Copydown
 * @date 2022/04/30 12:50
 */
public interface ArticleMapper extends BaseMapper<Article> {

    List<Archives> listArchives();

    IPage<Article> listArticle(Page<Article> page, Long categoryId, Long tagId, String year, String month);
}
